﻿namespace SupportSystemUI
{
    using SupportSystemDB;
    using SupportSystemUI.Controls;
    using SupportSystemUI.Controls.Utility;

    /// <summary>
    /// The global singleton holding project's global data.
    /// </summary>
    public class Global
    {
        /// <summary>
        /// The private and only instance of the singleton pattern.
        /// </summary>
        private static Global instance = new Global();

        /// <summary>
        /// Prevents a default instance of the <see cref="Global"/> class from being created.
        /// </summary>
        private Global()
        {
        }

        /// <summary>
        /// Gets the private and only instance of the singleton pattern.
        /// </summary>
        public static Global Instance
        {
            get { return instance; }
        }

        /// <summary>
        /// Gets or sets the main panel holding the splash screen and the vertical panel.
        /// </summary>
        public SlidePanel GlobalSlidePanel { get; set; }

        /// <summary>
        /// Gets or sets the user user screen that holds different pages.
        /// </summary>
        public MainScreen PagesScreen { get; set; }

        /// <summary>
        /// Gets or sets the current user's profile.
        /// </summary>
        public vMember CurrentProfile { get; set; }
    }
}
